home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / PredatorPrey / ProgWindowRsrcData.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-22  |  1.8 KB  |  95 lines  |  [TEXT/KAHL]

  1. /* ProgramWindowRsrcData.c -- application-specific data management */
  2. /* Created 940113 1:07 by AppMaker */
  3.  
  4. /* This module contains data structures to access the data in your */
  5. /* document's file(s). The purpose is to isolate the details of the */
  6. /* data representation into this module and to provide accessor */
  7. /* functions for reading/writing logical pieces of the data. */
  8. /* For your application, you will probably rewrite most of this. */
  9. /* This module will not be regenerated by AppMaker unless you delete it. */
  10.  
  11. #include <Types.h>
  12. #include <Quickdraw.h>
  13. #include <Controls.h>
  14. #include <Events.h>
  15. #include <Lists.h>
  16. #include <Menus.h>
  17. #include <TextEdit.h>
  18. #include "Globals.h"
  19. #include "Miscellany.h"
  20. #include "ProgWindowRsrcData.h"
  21.  
  22.  
  23. /* Define additional "private" data structures. */
  24. typedef struct {
  25.         short        data;
  26. } MoreStuff;
  27.  
  28. /*----------*/
  29. /*void    AddStuff    (YourStuff        *stuff)
  30. {
  31.  
  32. }*/ /* AddStuff */
  33.  
  34. /*----------*/
  35. /*Boolean  GetStuff    (void)
  36. {
  37.     return (false);
  38. }*/ /* GetStuff */
  39.  
  40. /*----------*/
  41. /*void    PutStuff    (void)
  42. {
  43. }*/ /* PutStuff */
  44.  
  45. /*----------*/
  46. /*void    DeleteStuff    (void)
  47. {
  48. }*/ /* DeleteStuff */
  49.  
  50. /*----------*/
  51. /*void    InitAppData        (void)
  52. {
  53. } *//* InitAppData */
  54.  
  55. /*----------*/
  56. /*void    DisposeAppData    (void)
  57. {
  58. }*/ /* DisposeAppData */
  59.  
  60. /*----------*/
  61. /*Boolean    OpenAppFile        (short        vRefNum,
  62.                          Str255        fName,
  63.                          short        *fRefNum)
  64. {
  65.     Boolean            okay;
  66.  
  67.     okay = CheckOS (FSOpen (fName, vRefNum, fRefNum));
  68.     return (okay);
  69. }*/ /* OpenAppFile */
  70.  
  71. /*----------*/
  72. /*void    CloseAppFile    (short        fRefNum)
  73. {
  74.     Boolean            okay;
  75.  
  76.     if (fRefNum != 0) {        /* could be 0 if closing new document *//*
  77.         okay = CheckOS (FSClose (fRefNum));
  78.     }
  79. }*/ /* CloseAppFile */
  80.  
  81. /*----------*/
  82. /*void    ReadAppFile     (short        fRefNum)
  83. {
  84.  
  85.     InitAppData ();
  86. }*/ /* ReadAppFile */
  87.  
  88. /*----------*/
  89. /*void    WriteAppFile    (short        fRefNum)
  90. {
  91.  
  92. }*/ /* WriteAppFile */
  93.  
  94. /* ProgramWindowRsrcData */
  95.